package com.bt.lms.ui.page.school_education.query_details;

import javafx.geometry.Insets;
import javafx.scene.control.Label;
import javafx.scene.control.ScrollPane;
import javafx.scene.layout.HBox;
import javafx.scene.layout.VBox;
import javafx.scene.text.Font;

/**
 *
 * 学籍异动界面
 */
public class PageCheckChangeMes extends VBox {
    private Integer baseWidth = 1230;

    public PageCheckChangeMes(PageCheckManage pageCheckManage) {
        VBox totalVBox = new VBox();
        Insets insets = new Insets(10);
        totalVBox.setPadding(insets);
        totalVBox.setPrefWidth(1280);

        HBox mesHBox = new HBox();
        mesHBox.setSpacing(700);
        Label studentBasic = new Label("招生计划A-班级1-灭霸学员学籍异动信息");
        studentBasic.setFont(Font.font("圆体", 20));

        mesHBox.getChildren().addAll(studentBasic);
        totalVBox.getChildren().add(mesHBox);

        Label SchoolRegisterChangeMes = new Label("学籍异动信息");
        SchoolRegisterChangeMes.setFont(Font.font("圆体",20));
        HBox hBox1 = new HBox();
        hBox1.setPrefWidth(1280);
        hBox1.setStyle("-fx-background-color: #cec9c9");
        hBox1.getChildren().add(SchoolRegisterChangeMes);
        totalVBox.getChildren().add(hBox1);
        totalVBox.setSpacing(10);

        ScrollPane scrollPane = new ScrollPane();
        scrollPane.setPrefWidth(1280);
        //设置滚动盒子只有竖向
        scrollPane.setHbarPolicy(ScrollPane.ScrollBarPolicy.NEVER);
        scrollPane.setVbarPolicy(ScrollPane.ScrollBarPolicy.ALWAYS);

        HBox one = new HBox();
        one.setPrefWidth(baseWidth);
        one.setSpacing(10);

        VBox one1 = new VBox();
        one1.setPrefWidth(baseWidth/5);
        one1.setSpacing(10);
        Label variationSortLab = new Label("异动类别");
        Label variationCauseLab = new Label("异动原因");
        Label variationDataLab = new Label("异动日期");
        Label variationStateLab = new Label("异动说明");
        one1.getChildren().addAll(variationSortLab,variationCauseLab,variationDataLab,variationStateLab);
        one.getChildren().add(one1);

        VBox one2 = new VBox();
        one2.setPrefWidth(baseWidth/5);
        one2.setSpacing(10);
        Label variationSortLabMes = new Label("停复");
        Label variationCauseLabMes = new Label("停学后复学");
        Label variationDataLabMes = new Label("2012年7月6日");
        Label variationStateLabMes = new Label();
        one2.getChildren().addAll(variationSortLabMes,variationCauseLabMes,variationDataLabMes,variationStateLabMes);
        one.getChildren().add(one2);


        VBox one3 = new VBox();
        one3.setPrefWidth(baseWidth/5);
        one3.setSpacing(10);
        Label variationFrontStateLab = new Label("异动前学籍状态");
        Label variationQueenStateLab = new Label("异动后学籍状态");
        one3.getChildren().addAll(variationFrontStateLab,variationQueenStateLab);
        one.getChildren().add(one3);

        VBox one4 = new VBox();
        one4.setPrefWidth(baseWidth/5);
        one4.setSpacing(10);
        Label variationFrontStateLabMes = new Label("停学");
        Label variationQueenStateLabMes = new Label("在籍");
        one4.getChildren().addAll(variationFrontStateLabMes,variationQueenStateLabMes);
        one.getChildren().add(one4);


        scrollPane.setContent(totalVBox);
        totalVBox.getChildren().add(one);
        this.getChildren().add(scrollPane);



    }
}
